package com.example.demo.controller.vo;

import jakarta.validation.Valid;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class TestCReqDTO {


    @Min(value = 0,message = "age最小0")
    @Max(value = 120,message = "age最大120")
    private Integer age;

    @NotBlank(message = "姓名不能为空")
    private String name;

    @NotBlank(message = "地址不能为空")
    private String address;
}
